import { post, get, put, _delete } from '@/lin/plugin/axios'

class Flower  {
    static async getList(page, count) {
        return await get(`/api/flower/page?page=${page}&count=${count}`)
    }

    static async get(id) {
        return await get(`/api/flower/detail/${id}`)
    }

    static async create(data) {
        return await post(`/api/flower`, data)
    }

    static async update(id, data) {
        return await put(`/api/flower/${id}`, data)
    }

    static async delete(id) {
        return await _delete(`/api/users/${id}`)
    }
}

export default Flower